<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>后台登入</title>
    <link rel="stylesheet" href="/layui-v2.0.1/layui/css/layui.css">
    <link rel="stylesheet" href="/css/admin_login.css">
    <script src="/layui-v2.0.1/layui/layui.js"></script>
</head>
<body>
   <div class="content">
     <h1 class="title">微信公众号后台管理系统</h1>
     <div class="error">
     <?php if(isset($warnings)&&$warnings != null): ?>
      <?php foreach ($warnings as $k => $war): ?>
      <div class="login-error alert alert-danger" role="alert"><strong>错误:</strong> <?=$war;?></div>
      <?php endforeach; ?>
      <?php endif; ?>
      </div>
    <div class="content-form">
     <form class="layui-form" action="/admin/login/dologin" method="post">
          <div class="layui-form-item">
            <label class="layui-form-label">管理员</label>
            <div class="layui-input-block">
              <input type="text" name="username" lay-verify="required|username" autocomplete="off" placeholder="请填写用户名" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">密码</label>
            <div class="layui-input-block">
              <input type="password" name="password" lay-verify="required|pass" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit="" lay-filter="demo1">登入</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>      
     </form>
    </div>
   </div>
</body>
</html>
<script src="/layui-v2.0.1/layui/layui.js"></script>
<script>


layui.use(['form', 'layedit', 'laydate', 'jquery'], function(){
    var form = layui.form()
    ,layer = layui.layer
    ,layedit = layui.layedit
    ,laydate = layui.laydate


      
  
});
</script>